package xyz.cerberu.cet.user.domain;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

/**
 * @author β世界
 * Created on 15:39
 * @Description 评论模块实体
 */
public class Comment implements Serializable {
    private int cid;
    private String aniId;
    private User user;
    private String commentContent;
    private Timestamp date;
    private String isShow;
    /** 回复列表 **/
    private List<Comment> replyComments = new ArrayList<>();
    private Integer superior;

    public Comment() {
    }

    public Comment(int cid, String aniId, User user, String commentContent, Timestamp date, String isShow) {
        this.cid = cid;
        this.aniId = aniId;
        this.user = user;
        this.commentContent = commentContent;
        this.date = date;
        this.isShow = isShow;
    }

    public Comment(int cid, String aniId, User user, String commentContent, Timestamp date, String isShow, Integer superior) {
        this.cid = cid;
        this.aniId = aniId;
        this.user = user;
        this.commentContent = commentContent;
        this.date = date;
        this.isShow = isShow;
        this.superior = superior;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getAniId() {
        return aniId;
    }

    public void setAniId(String aniId) {
        this.aniId = aniId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public Integer getSuperior() {
        return superior;
    }

    public void setSuperior(Integer superior) {
        this.superior = superior;
    }

    public List<Comment> getReplyComments() {
        return replyComments;
    }

    public void setReplyComments(List<Comment> replyComments) {
        this.replyComments = replyComments;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "cid=" + cid +
                ", aniId='" + aniId + '\'' +
                ", user=" + user +
                ", commentContent='" + commentContent + '\'' +
                ", date=" + date +
                ", isShow='" + isShow + '\'' +
                ", superior=" + superior +
                '}';
    }
}
